<%@page import="gruppe7.util.Html" %>
<%@page import="gruppe7.model.User" %>
<%@page import="gruppe7.control.ServletController" %>

<%
ServletController sc = ServletController.getInstance(); 
boolean loggedIn = sc.isSessionCreated(request);
User user = loggedIn ? sc.getSession(request, response).getUser() : null;

%>

	<div id ="header"></div>
	<div id="nav-container">

	<div id="top-links">

	<p><a href='index.jsp'>Home</a><span class="splitter"> | </span>
	<a href='contact.jsp'>Contact Us</a><span class="splitter"> | </span>
	<a href='help.jsp'>Help</a><span class="splitter"> | </span>
	<a href='lookup_price.jsp'>Look up price</a><span class="splitter"> | </span>
	<a href="show_stations.jsp">Edit station info</a><span class="splitter"> | </span>
	<a href="show_accounts.jsp">Show accounts</a><span class="splitter"> | </span>
	
	<div id="login">
<%
		if (loggedIn)
		out.println("<p class='blue'>[ You are logged in as " + user.getUsername() + " - <a href='logout.do'>logout?</a> ]</p>");

		else out.println("<p class='blue'>[ You are not logged in ]</p>");
%>
	</div>
	</p>


	</div>

	</div>


